package yf.mall.service;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.SysUsersEntity;
import com.yf.service.BaseService;

import java.util.List;

/**
 * 系统用户Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Jun 28 17:37:34 CST 2020
 */
public interface SysUsersService extends BaseService<SysUsersEntity>{


    /**

     List<SysUserVo> queryListVo(SysUserVo sysUserVo);

        SysUserVo getVo(Long id);

     **/

   /***********BACK***********/
   void updateBySysUserId(Long sys_user_id, Long user_id);

    void saveUserIdAndSysUserId(Long sys_user_id, Long user_id);

    Long findBySysUserId(Long sys_user_id);

    List<Long> findByUserId(Long user_id);

    void delBySysUserId(Long ids);

    void updateStatus(Long sys_userId);

    void delByUserId( Long userId);

    List<Long> findRole(Long sysUserId);

 List<SysUsersEntity> findByShopName(String shopName, Integer status,String username, String mobile);
    /***********API***********/

    SysUsersEntity findByUserName(String userName);

    void saveRole(Long userId,Long roleId);



}
